#include "LogToStdout.h"

#include "Trace.h"
#include "GlobalMacros.h"

#include <stdio.h>

LogToStdout::LogToStdout ()
{

}
LogToStdout::~LogToStdout ()
{
    //this->close ();
}
int LogToStdout::open (const char *, LogManager::Strategy *)
{
    TRACE ("LogToStdout");

	setbuf (stdout, 0);
    return 0;
}
int LogToStdout::close ()
{
    return 0;
}
void LogToStdout::reset ()
{
}
int LogToStdout::log (const char *log_msg, int)
{
    return ::fprintf(stdout, "%s", log_msg);
}
void LogToStdout::update_strategy (const char *, LogManager::Strategy *)
{
}

